// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file TypesCdrAux.hpp
 * This source file contains some definitions of CDR related functions.
 *
 * This file was generated by the tool fastddsgen.
 */

#ifndef _FAST_DDS_GENERATED_TYPESCDRAUX_HPP_
#define _FAST_DDS_GENERATED_TYPESCDRAUX_HPP_

#include "Types.h"

constexpr uint32_t SimpleUnionStruct_max_cdr_typesize {24UL};
constexpr uint32_t SimpleUnionStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SequenceSequenceBoundsStruct_max_cdr_typesize {132UL};
constexpr uint32_t SequenceSequenceBoundsStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t MyAliasEnumStruct_max_cdr_typesize {8UL};
constexpr uint32_t MyAliasEnumStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t ArrayBadStruct_max_cdr_typesize {6UL};
constexpr uint32_t ArrayBadStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t MapBadKeyStruct_max_cdr_typesize {24UL};
constexpr uint32_t MapBadKeyStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SimpleBadUnionStruct_max_cdr_typesize {24UL};
constexpr uint32_t SimpleBadUnionStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t MyEnumStruct_max_cdr_typesize {8UL};
constexpr uint32_t MyEnumStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t ArrayStructEqual_max_cdr_typesize {12UL};
constexpr uint32_t ArrayStructEqual_max_key_cdr_typesize {0UL};

constexpr uint32_t LargeWStringStruct_max_cdr_typesize {83858UL};
constexpr uint32_t LargeWStringStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t WStringStruct_max_cdr_typesize {518UL};
constexpr uint32_t WStringStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SequenceStruct_max_cdr_typesize {16UL};
constexpr uint32_t SequenceStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SimpleTypeUnionStruct_max_cdr_typesize {24UL};
constexpr uint32_t SimpleTypeUnionStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t ArrayDimensionsStruct_max_cdr_typesize {20UL};
constexpr uint32_t ArrayDimensionsStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SequenceSequenceStruct_max_cdr_typesize {48UL};
constexpr uint32_t SequenceSequenceStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t MapBoundsStruct_max_cdr_typesize {40UL};
constexpr uint32_t MapBoundsStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SequenceStructEqual_max_cdr_typesize {16UL};
constexpr uint32_t SequenceStructEqual_max_key_cdr_typesize {0UL};

constexpr uint32_t MapStructEqual_max_cdr_typesize {24UL};
constexpr uint32_t MapStructEqual_max_key_cdr_typesize {0UL};

constexpr uint32_t BasicStruct_max_cdr_typesize {272UL};
constexpr uint32_t BasicStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SequenceBoundsStruct_max_cdr_typesize {24UL};
constexpr uint32_t SequenceBoundsStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t MapMapStruct_max_cdr_typesize {60UL};
constexpr uint32_t MapMapStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t BasicWideStruct_max_cdr_typesize {536UL};
constexpr uint32_t BasicWideStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t SimplBadDiscUnionStruct_max_cdr_typesize {24UL};
constexpr uint32_t SimplBadDiscUnionStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t MapStruct_max_cdr_typesize {24UL};
constexpr uint32_t MapStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t MyBadEnumStruct_max_cdr_typesize {8UL};
constexpr uint32_t MyBadEnumStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SequenceBadStruct_max_cdr_typesize {10UL};
constexpr uint32_t SequenceBadStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SimpleUnionNamesStruct_max_cdr_typesize {24UL};
constexpr uint32_t SimpleUnionNamesStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t LargeStringStruct_max_cdr_typesize {41934UL};
constexpr uint32_t LargeStringStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t ArrayStruct_max_cdr_typesize {12UL};
constexpr uint32_t ArrayStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t BadBasicWideStruct_max_cdr_typesize {536UL};
constexpr uint32_t BadBasicWideStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t ArraySizeStruct_max_cdr_typesize {24UL};
constexpr uint32_t ArraySizeStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t MapBadElemStruct_max_cdr_typesize {40UL};
constexpr uint32_t MapBadElemStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t SimpleUnionStructEqual_max_cdr_typesize {24UL};
constexpr uint32_t SimpleUnionStructEqual_max_key_cdr_typesize {0UL};

constexpr uint32_t BasicBadStruct_max_cdr_typesize {272UL};
constexpr uint32_t BasicBadStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t BasicNamesStruct_max_cdr_typesize {272UL};
constexpr uint32_t BasicNamesStruct_max_key_cdr_typesize {0UL};

constexpr uint32_t StringStruct_max_cdr_typesize {264UL};
constexpr uint32_t StringStruct_max_key_cdr_typesize {0UL};


constexpr uint32_t MapMapBoundsStruct_max_cdr_typesize {108UL};
constexpr uint32_t MapMapBoundsStruct_max_key_cdr_typesize {0UL};


namespace eprosima {
namespace fastcdr {

class Cdr;
class CdrSizeCalculator;

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MyEnumStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MyBadEnumStruct& data);


eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MyAliasEnumStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const BasicStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const BasicNamesStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const BasicBadStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const BasicWideStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const BadBasicWideStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const StringStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const LargeStringStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const WStringStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const LargeWStringStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const ArrayStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const ArrayStructEqual& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const ArrayBadStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const ArrayDimensionsStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const ArraySizeStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SequenceStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SequenceStructEqual& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SequenceBadStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SequenceBoundsStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SequenceSequenceStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SequenceSequenceBoundsStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapStructEqual& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapBadKeyStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapBadElemStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapBoundsStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapMapStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const MapMapBoundsStruct& data);






eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SimpleUnionStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SimpleUnionStructEqual& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SimpleUnionNamesStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SimpleTypeUnionStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SimpleBadUnionStruct& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const SimplBadDiscUnionStruct& data);


} // namespace fastcdr
} // namespace eprosima

#endif // _FAST_DDS_GENERATED_TYPESCDRAUX_HPP_